﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour
{

    public static float getCardTime = 10.0f;
    void Start()
    {
        
        //游戏开始getCardTime秒后获得一张卡牌，之后没过getCardTime秒再获得一张
        InvokeRepeating("GetCard", 0, getCardTime);
    }

    void Update()
    {
        
    }

    private void GetCard()
    {
        int num = Random.Range(0, CardItemList.cardItemList.Count);
        Debug.Log(num);
        CardItem cardItem = CardItemList.GetCardItemById(0);
        Card.CreateCard(cardItem);
    }

    private void Test()
    {
        GameObject gameObject = new GameObject();
        
    }
}
